import React, { Suspense } from "react";
import ReactDOM from "react-dom/client";
import { Provider } from "react-redux";
import App from "./App";

import "normalize.css";
import "./index.css";

import { HashRouter } from "react-router-dom";
import "antd/dist/reset.css";
import store from "./store";

// "homepage": "./", 设置打包路径

const root = ReactDOM.createRoot(
  document.getElementById("root") as HTMLElement
);
root.render(
  <Provider store={store}>
    <Suspense fallback="">
      {/* <React.StrictMode> */}
      <HashRouter>
        <App />
      </HashRouter>
      {/* </React.StrictMode> */}
    </Suspense>
  </Provider>
);
